powered by
Find the partial node ordering implied by a network.
node.ordering(x, debug = FALSE)
an object of class bn or bn.fit.
bn
bn.fit
a boolean value. If TRUE a lot of debugging output is printed; otherwise the function is completely silent.
TRUE
node.ordering() returns a vector of character strings, an ordered set of node labels.
node.ordering()
# NOT RUN { dag = random.graph(LETTERS[1:10]) ord = node.ordering(dag) ord # }
Run the code above in your browser using DataLab